﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Text;

namespace WEB
{
    public class stringpro
    {
        public stringpro()
        {
            //
            //TODO: 在此处添加构造函数逻辑
            //
        }

        /// <summary>
        /// MD5加密
        /// </summary> 
        public static string md5(string str)
        {
            string md5str = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str, "md5");
            return md5str;
        }
    }
}
